package com.ruoyi.system.domain;

import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同对象 t_contract
 *
 * @author ruoyi
 * @date 2023-07-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_contract")
public class Contract {
    /**
     * 合同ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 合同类型
     */
    private Integer type;

    /**
     * 合同名称
     */
    @Excel(name = "合同名称")
    private String name;

    /**
     * 事业部id
     */
    private Long businessId;

    /**
     * 事业部名称
     */
    @Excel(name = "事业部名称")
    private String businessName;

    /**
     * 交付部id
     */
    private Long deliverId;

    /**
     * 交付部名称
     */
    @Excel(name = "交付部名称")
    private String deliverName;

    /**
     * 客户
     */
    @Excel(name = "客户")
    private String customerName;

    /**
     * 销售类型
     */
    @Excel(name = "销售类型")
    private Integer sellType;

    /**
     * 付费模式
     */
    @Excel(name = "付费模式")
    private Integer payType;

    /**
     * 付费模式明细信息
     */
    @TableField(exist = false)
    private List<ContractPayDetail> contractPayDetailList;


}
